import router from "@/router";
import { locStorage } from "@/utils/storage";
// import XEUtils from 'xe-utils'

/*
 * @Author: songdengwei
 * @Date: 2020-07-21
 * @LastEditors: songdengwei
 * @LastEditTime: 2020-07-21
 * @Description: 
 */


// 权限指令
export const permission = {
    mounted(el: any, binding: any) {
        let userPromisee: any = locStorage.getItem('userPromisee');
        if (userPromisee[binding.value] || binding.value === undefined || binding.value === '') {
          el.style.display = 'inline-block';
        } else {
          el.style.display = 'none';
        }
    },
};